package org.emekteb.entity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Login {

	private Long id;

	public Login() {
		id = (long) 1;
	}
	
	@NotNull
	@Size(min=5, message="İstifadəçi adını daxil edin!")
	private String userId;
	
	@NotNull
	private String password;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
